# coding: utf8
# datetime: 2021-03-19
# 题目地址：https://leetcode-cn.com/problems/design-parking-system/


class ParkingSystem:

    def __init__(self, big: int, medium: int, small: int):
        self.park_map = {
            1: big,
            2: medium, 
            3: small
        }

    def addCar(self, carType: int) -> bool:
        if self.park_map[carType] == 0:
            return False
        self.park_map[carType] -= 1
        return True

 